package com.huopaolan.yohuoshop.Adapter;

import android.view.View;
import android.widget.CompoundButton;
import android.widget.CursorTreeAdapter;
import android.widget.Toast;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.huopaolan.yohuoshop.Bean.CategoryAllGoodsEntity;
import com.huopaolan.yohuoshop.Mvc.Model.MyTextViewCategoryLeft;
import com.huopaolan.yohuoshop.Mvp.View.Fragment.CategoryFragment;
import com.huopaolan.yohuoshop.R;

import java.util.List;

public class CategoryAllAdapter extends BaseQuickAdapter<CategoryAllGoodsEntity.Values, BaseViewHolder> {

    public CategoryAllAdapter(int layoutResId) {
        super(layoutResId);
    }

    @Override
    protected void convert(final BaseViewHolder helper, final CategoryAllGoodsEntity.Values item) {
        helper.setText(R.id.category_all_goods, item.category_name);
        MyTextViewCategoryLeft helperView = helper.getView(R.id.category_all_goods);
        helperView.setIsSelect(item.flag);
    }
}
